
 /**
 * ISimpleMailManager.java.java.
 * User: BrianChen Date: 2012-6-16 上午11:19:30
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.email;

import org.springframework.mail.javamail.JavaMailSender;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-16 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-16 上午11:19:30
 * @version 1.0
 * @see
 * 纯文本邮件服务类.
 */
public interface ISimpleMailManager {
	/**
	 * 发送纯文本 通知邮件
	 * @param to
	 * @param from
	 * @param subject
	 * @param content
	 */
	void sendNotificationMail(String to, String from, String subject, String content);
	/**
	 * 发送纯文本的通知邮件
	 * @param to
	 * @param from
	 * @param subject
	 * @param args
	 */
	void sendNotificationMail(String to, String from, String subject, Object... args);

	/**
	 * 发送 纯文本 通知邮件
	 * @param to
	 * @param from
	 * @param subject
	 * @param mailTemplate
	 * @param args
	 */
	void sendNotificationMail(String to, String from, String subject, String mailTemplate, Object... args);
	/**
	 * 配置 spring 的 MailSender
	 * @param mailSender
	 */
	void setMailSender(JavaMailSender mailSender);
	/**
	 * 配置 邮件模版字符串
	 * @param mailTemplate
	 */
	void setMailTemplate(String mailTemplate);

}

